export default [
  {
    path:'/main',
    name:'主路由',
    component: () => import('@/pages/main/index'),
    children:[
      {
        path:'/register',
        name:'注册路由',
        component: () => import('@/pages/register/index')
      },
      {
        path:'/login',
        name:'登录路由',
        component: () => import('@/pages/login/index')
      },
      {
        path:'/personal',
        name:'个人中心',
        component: () => import('@/pages/user/index'),
        meta:{ requireAuth:true} //表示需要登录才可以访问
      },
      {
        path:'/contacts',
        name:'联系人列表',
        component: () => import('@/pages/contacts/index'),
        meta:{ requireAuth:true} //表示需要登录才可以访问
      },
    ]
  },
  {
    path:'/chatpanel/:uid/:uname',
    name:'聊天面板',
    component: () => import('@/pages/chatpanel/index')
  },
  {
    path:'/tabs',
    name:'tabs切换',
    component: () => import('@/pages/tabs/index')
  },
  {
    path:'/video',
    name:'video切换',
    component: () => import('@/pages/video/index')
  }


]